/**
 * @file mock data
 * @author autoresponse
 */

/* eslint-disable fecs-camelcase */

/**
 * 获取 mock 响应数据
 *
 * @param {string} path 请求路径名
 * @param {Object} queryParam 查询参数信息
 * @param {Object} postParam post 的查询参数信息
 * @return {Object}
 */
module.exports = function (path, queryParam, postParam) {
    return {
        // 可以通过该属性来设置响应的延时，也可以设为值为'0,100'，表示随机 0-100ms 的延时，默认 0
        _timeout: 0,

        // 通过该状态来设置响应的 http 的状态码，默认 200
        _status: 200,

        // 对于要响应的 json 数据可以统一放在该字段里，也可以不使用该字段，直接跟 _xx 属性平级放
        _data: {
            "data": {
                "pageNo": 1,
                "pageSize": 200,
                "list": [

                    {
                        "uid": 1,
                        "createIp": "0.0.0.0",
                        "address": "我是中国人我是中国人",
                        "addressDelFlag": "FALSE",
                        "name": "554",
                        "id": 13,
                        "createDate": "2016-10-12 09:48:02"
                    },
                    {
                    "uid": 1,
                    "createIp": "0.0.0.0",
                    "address": "GOPEMCR3qYh3gGAWwPMJWyV2GqPqTgVveB3ff4679a5c4708438a963172a87ae610c1",
                    "addressDelFlag": "FALSE",
                    "name": "li",
                    "id": 11,
                    "createDate": "2016-10-11 17:17:08"
                }, {
                    "uid": 1,
                    "createIp": "0.0.0.0",
                    "address": "GOPCjXkC8cNG8LLaUQ9npBsAd2aPrtKYgypLb073c09613e2cc0641f1fb8d94ee88eb",
                    "addressDelFlag": "FALSE",
                    "name": "qw",
                    "id": 10,
                    "createDate": "2016-10-11 17:14:09"
                }, {
                    "uid": 1,
                    "createIp": "0.0.0.0",
                    "address": "GOPCjXkC8cNG8LLaUQ9npBsAd2aPrtKYgypLc067859f402f3f994cf92c2b67cefb7b",
                    "addressDelFlag": "FALSE",
                    "name": "qifeng",
                    "id": 9,
                    "createDate": "2016-10-11 17:12:50"
                }, {
                    "uid": 1,
                    "createIp": "0.0.0.0",
                    "address": "GOPBPtypKCan79BfbJaLEHkAqre6VKm6tUA",
                    "addressDelFlag": "FALSE",
                    "name": "err",
                    "id": 6,
                    "createDate": "2016-10-11 11:27:34"
                }],
                "pageNum": 1
            }, "msg": "success", "code": "100200"
        }
    };
};

/* eslint-enable fecs-camelcase */
